Ext.define('PJ.view.unitregistrationmanagement.UnitWindow', {
    extend: 'AM.default.DefaultWindowForm',
    requires: ['AM.default.DefaultDateField', 
               'AM.default.DateTime', 
               'AM.default.jsonp.DefaultSubmitJsonp',
               'PJ.view.unitregistrationmanagement.UnitChooseUserList'//人员列表
               ],
    
    modal: true,// 开启不允许点击其他组件
    frame: true,
    notEdit: true,
    width: 1055,
//	height: 500,
    autoHeight: true,
    isSame: false,
    isEdit: null,

    initComponent: function(){
    	var me = this;
    	me.items= [{
    		xtype: "fieldset",
    		layout: 'column',
            collapsible: false, //显示三角
            defaults: {
    			xtype: 'textfield',
            	labelAlign: 'right',
            	labelWidth: 65,
            	readOnly: true,
            	fieldCls: 'noBorder',
            	columnWidth: .5
            },
    		items: [{
    			fieldLabel: '班级名称',
    			name: 'className',
            	columnWidth: 1
    		}, /*{
    			fieldLabel: '委托部委',
    			name: 'trainingDeptName'
    		}, */{
    			fieldLabel: '举办时间',
    			name: 'learnTime',
            	columnWidth: 1
    		}]
    	}, {
    		xtype: "fieldset",
    		layout: 'column',
//    		height: 400,
            collapsible: false, //显示三角
    		items: [{
    			title: '人员列表',
    			xtype: 'unitChooseUserList',
    			classId:me.classId,
    			signUpState:me.signUpState,
    			clickSource:me.clickSource,
    			auditingState:me.auditingState,
    		    height: 333,
            	columnWidth: 1
    		}]
    	}];
        me.buttons = [{
            text: '关闭',
            scope: this,
            handler: this.close
        }];
        me.callParent(arguments);
    },

    listeners: {
    	close: function(){
    		this.grid.store.load();
//    		this.grid.userNum();//干部选学人数
    	}
    }
});
